<?php

$GLOBALS['debug_info']['funcs'] = Trace::get_user_funcs();
$GLOBALS['debug_info']['classes'] = Trace::get_user_classes();
if(!empty($_GET['cls'])){
	$GLOBALS['debug_info']['cls'] = Trace::get_class_info($_GET['cls']);
	if(!empty($_GET['method'])){
		$GLOBALS['debug_info']['method'] = Trace::get_method_info($_GET['cls'], $_GET['method']);
	}
}
$GLOBALS['debug_info']['exts'] = Trace::get_extension_loaded();
if(!empty($_GET['ext'])){
	$GLOBALS['debug_info']['ext'] = Trace::get_extension_info($_GET['ext']);
}
if(!empty($_GET['fn'])){
	$GLOBALS['debug_info']['fn'] = Trace::get_func_info($_GET['fn']);
}

$GLOBALS['runtime']['end'] = microtime(true);
$GLOBALS['runtime']['start_power'] = $GLOBALS['runtime']['power'] - $GLOBALS['runtime']['start'];
$GLOBALS['runtime']['start_end'] = $GLOBALS['runtime']['end'] - $GLOBALS['runtime']['start'];

$GLOBALS['debug_info']['runtime'] = $GLOBALS['runtime'];
$GLOBALS['debug_info']['language_pack'] = $__l;
$GLOBALS['debug_info'][] = array('_manager' => $__s_manager_self, '$__f_manager_info_cur' => $__f_manager_info_cur, '_role_info' => $_role_info);

echo '<pre>';
print_r($GLOBALS['debug_info']);
echo '</pre>';
exit;

// ################################################################################

/*
fb(Trace::get_user_funcs(), 'funcs');
fb(Trace::get_user_classes(), 'classes');

if(!empty($_GET['cls'])){
	fb(Trace::get_class_info($_GET['cls']), 'cls');
	if(!empty($_GET['method'])){
		fb(Trace::get_method_info($_GET['cls'], $_GET['method']), 'method');
	}
}
fb(Trace::get_extension_loaded(), 'exts');
if(!empty($_GET['ext'])){
	fb(Trace::get_extension_info($_GET['ext']), 'ext');
}
if(!empty($_GET['fn'])){
	fb(Trace::get_func_info($_GET['fn']), 'fn');
}

fb($GLOBALS['runtime'], 'runtime');
fb($__l, 'language_pack');
fb(array('_manager' => $__s_manager_self, '$__f_manager_info_cur' => $__f_manager_info_cur, '_role_info' => $_role_info), 'roleinfo');*/
?>